package com.hgw.Demo07_FlyweightPattern.ExternalRelations;

/**
 * Data time:2021/12/15 19:28
 * StudentID:2019112118
 * Author:hgw
 * Description: 围棋棋子类，充当抽象享元类
 */
public abstract class IgoChessman {
    public abstract String getColor();

    public void display(Coordinates coord) {
        System.out.println("棋子颜色：" + this.getColor() + "，棋子位置：" + coord.getX() + "," + coord.getY());
    }

}
